package com.xfcy.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xfcy.blog.common.R;
import com.xfcy.blog.dto.LoginDTO;

import java.io.IOException;
import java.util.Map;

/**
 * @author 晓风残月Lx
 * @date 2023/5/14 18:06
 */
public interface LoginService {

    /**
     * 后台登陆
     * @param loginDTO
     * @return
     */
    R login(LoginDTO loginDTO);

    /**
     * 获取验证码
     * @return
     */
    Map<String, String> captchaImage() throws IOException;
}
